home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13669 < prev    next >
Encoding:
Text File  |  1996-08-05  |  808 b   |  24 lines

  1. Newsgroups: comp.lang.c
  2. Path: night.primate.wisc.edu!relay!news
  3. From: dheffel@vitds2.nswc.navy.mil (David R. Heffelfinger)
  4. Subject: making #define's to be seen across files
  5. Message-ID: <1996Apr9.164443.28709@relay.nswc.navy.mil>
  6. Sender: news@relay.nswc.navy.mil
  7. Reply-To: dheffel@vitds2.nswc.navy.mil
  8. Organization: The Unconfigured xvnews people
  9. Date: Tue, 9 Apr 1996 16:44:43 GMT
  10.  
  11. Hi there,
  12.     There is (hopefully) a simple answer to my question:
  13.  
  14. I have some C code divided into different source files.
  15. When I try to compile using 
  16.   "cc file1.c file2.c file3.c"
  17. the constants #define'd in file1.c are not visible in file2.c, is there a way to make them visible to the other source files?  In other words, is there som equivalent to "extern" for constants?
  18.  
  19. Any help will be deeply appreciated.
  20.  
  21. Heffel
  22.  
  23.  
  24.